package com.pan.admin.module.loanConfig.entity;

import com.pan.admin.common.annotation.Excel;
import com.pan.admin.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 动态单字段对象 loan_form_field
 *
 * @author ghb
 * @date 2023-09-11
 */
public class LoanFormField extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 字段名称
     */
    @Excel(name = "字段名称")
    private String fieldName;

    /**
     * 映射属性名
     */
    @Excel(name = "映射属性名")
    private String mappingName;

    /**
     * 默认选中值
     * 默认必填(0选填，1必填)
     */
    @Excel(name = "默认必填(0选填，1必填) ")
    private Long enableRequired;


    /**
     * 默认选中表单值
     */
    @Excel(name = "默认选中表单值")
    private Long defaultLoanFormValueId;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private int status;

    /**
     * 字段类型
     */
    @Excel(name = "类型")
    private Integer type;

    /**
     * 字段值
     */
    private String fieldValue;


    public void setId(Long id) {
        this.id = id;
    }

    public String getMappingName() {
        return mappingName;
    }

    public String getFieldValue() {
        return fieldValue;
    }

    public void setFieldValue(String fieldValue) {
        this.fieldValue = fieldValue;
    }

    public void setMappingName(String mappingName) {
        this.mappingName = mappingName;
    }

    public Long getEnableRequired() {
        return enableRequired;
    }

    public void setEnableRequired(Long enableRequired) {
        this.enableRequired = enableRequired;
    }

    public Long getDefaultLoanFormValueId() {
        return defaultLoanFormValueId;
    }

    public void setDefaultLoanFormValueId(Long defaultLoanFormValueId) {
        this.defaultLoanFormValueId = defaultLoanFormValueId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getId() {
        return id;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getFieldName() {
        return fieldName;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("fieldName", getFieldName())
                .append("type", getType())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("status", getStatus())
                .toString();
    }
}
